//
//  BaseViewController.h
//  HigerGbos
//
//  Created by KevinMao on 14-5-21.
//  Copyright (c) 2014年 Jijesoft. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FMNavigationBar.h"

#define RGBColor(r,g,b) [UIColor colorWithRed:r/255.0 green:g/255.0 blue:b/255.0 alpha:1]

@interface BaseViewController : UIViewController<FMNavigationBarDelegate>

@property (nonatomic , strong) ASIFormDataRequest *asiFDR;

@property (nonatomic, strong) id home;
-(IBAction)backAction:(id)sender;
- (void)errorForAuthentication;

//设置左边的返回按钮
- (void)setLeftBackButton;
- (void)setLeftBackButtonAction:(SEL)selector;
//设置左边的返回按钮(图片按钮)
- (void)setLeftButtonWithImageName:(NSString*)imageName action:(SEL)selector;
//设置左边的返回按钮(文字按钮)
- (void)setLeftButtonWithTitle:(NSString*)title action:(SEL)selector;
//设置左边的返回按钮(通用按钮)
- (void)setLeftButton:(UIButton*)button action:(SEL)selector;


//设置中间的文本标题
- (void)setTitleViewWithText:(NSString*)text;



//设置右边的按钮(文字按钮)
- (void)setRightButtonWithTitle:(NSString*)title action:(SEL)selector;
//设置右边的按钮(图片按钮)
- (void)setRightButtonWithImageName:(NSString*)imageName action:(SEL)selector;

- (void)setRightButtonWithNormarlImageName:(NSString*)normarName highlightedImageName:(NSString *)highlightedName action:(SEL)selector;

//设置右边的按钮
- (void)setRightButton:(UIButton*)button action:(SEL)selector;

- (void)setRightButtons:(NSArray *)btnStrs;

- (void)setRightButtonImages:(NSArray *)images;

- (void)rightButtonAction:(id)sender;

//返回按钮的响应事件
- (void)backButtonPressed:(id)sender;

-(void)presentViewControllerInFullRect:(BaseViewController*)viewController;

-(void)presentViewControllerInSmallRect:(BaseViewController*)viewController;

//title
- (void)setNavTitle:(NSString *)title;
- (void)setNavTitleView:(UIView *)titleView;
//左侧返回
- (void)setNavBackButton:(NSString *)btnStr;
- (void)navBackButtonActionAtTag:(NSUInteger)tag;
//右侧按钮
- (void)setNavRightButton:(NSString *)btnStr;
- (void)setNavRightButtons:(NSArray *)btnStrs;
- (void)navRightButtonActionAtTag:(NSUInteger)tag;

-(void)getCarList;

@end
